Skip to content

refactor: split main.rs in tee-launcher crate#2633

Merged
gilcu3 merged 5 commits intomainfrom
2609-rust-launcher-refactor-mainrs-into-smaller-logical-modules
Mar 27, 2026
Merged

refactor: split main.rs in tee-launcher crate#2633
gilcu3 merged 5 commits intomainfrom
2609-rust-launcher-refactor-mainrs-into-smaller-logical-modules

Conversation

@gilcu3
Copy link
Copy Markdown
Contributor

@gilcu3 gilcu3 commented Mar 27, 2026

Closes #2609

@gilcu3 gilcu3 linked an issue Mar 27, 2026 that may be closed by this pull request
4 tasks
@gilcu3 gilcu3 marked this pull request as ready for review March 27, 2026 14:26
@claude
Copy link
Copy Markdown

claude bot commented Mar 27, 2026

Code Review

Clean mechanical refactoring — code moved verbatim from main.rs into compose.rs, config.rs, registry.rs, selection.rs, and validation.rs with only pub(crate) visibility adjustments. All tests (unit, mock-based, and integration) are preserved alongside their respective modules. No logic changes.

✅ Approved — no critical issues found.

Copy link
Copy Markdown
Collaborator

@netrome netrome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we do this, I'd prefer to split out all crates to a lib.rs crate.

@gilcu3 gilcu3 requested a review from netrome March 27, 2026 14:53
Copy link
Copy Markdown
Collaborator

@netrome netrome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gilcu3 gilcu3 enabled auto-merge March 27, 2026 15:38
Comment on lines +90 to +99
match std::fs::OpenOptions::new()
.read(true)
.write(false)
.open(IMAGE_DIGEST_FILE)
{
Err(err) if err.kind() == std::io::ErrorKind::NotFound => {
tracing::warn!(
?err,
?default_image_digest,
"approved hashes file does not exist on disk, falling back to default digest"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems not to be similar to what has been deleted...

@gilcu3 gilcu3 added this pull request to the merge queue Mar 27, 2026
Merged via the queue into main with commit f80f491 Mar 27, 2026
24 checks passed
@gilcu3 gilcu3 deleted the 2609-rust-launcher-refactor-mainrs-into-smaller-logical-modules branch March 27, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rust-launcher] Refactor main.rs into smaller logical modules

3 participants